package com.wind.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.wind.entity.Announcement;
import com.wind.dao.AnnouncementMapper;
import com.wind.entity.SysUser;
import com.wind.service.IAnnouncementService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 公告表 服务实现类
 * </p>
 *
 * @author xiao
 * @since 2021-05-19
 */
@Service
public class AnnouncementServiceImpl extends ServiceImpl<AnnouncementMapper, Announcement> implements IAnnouncementService {

    @Override
    public Page<Announcement> query(Page page, String title) {
        return page.setRecords(baseMapper.select(page,title));
    }
}
